<div id="comments">	
	<h3><?php 
			$comment_num = $post_result->post_comment_count; 
			if($comment_num > 0)
				echo $comment_num.$this->lang->line('default_comment_num');
			else
				echo $this->lang->line('default_comment_null');
		?>
	</h3>
	<ol class="comment_list">
		<?php foreach($comments as $key=>$val) : ?>
			<li class="comment" id="comment-<?php echo $val->comment_id; ?>">
				<div id="div-comment-<?php echo $val->comment_id; ?>" class="comment-body">
					<div class="comment-author vcard">
						<a href='<?php echo $val->comment_author_url; ?>' rel='external nofollow' class='url' target='_blank'><?php echo $val->comment_author; ?></a> <span class="says"><?php echo $this->lang->line('default_comment_say'); ?>: </span>
					</div>
					<div class="comment-meta commentmetadata">
						<?php echo date("Y-m-d H:i",$val->comment_date); ?>		
					</div>
					<p><?php echo $val->comment_content; ?></p>
				</div>
			</li>
		<?php endforeach; ?>
	</ol>
	<?php echo $pagination ?>
	<?php if ( $post_result->post_comment_status !== 'open' ) : ?>
		<p><?php echo $this->lang->line('default_comment_close'); ?></p>
	<?php else : ?>
	<div id="respond">
		<h3 id="reply-title"><?php echo $this->lang->line('default_comment_submit'); ?></h3>
		<form action="<?php echo base_url().'comment'; ?>" method="post" id="commentform">
			<p class="comment-notes"><?php echo $this->lang->line('default_comment_notes'); ?></p>
			<p class="comment-form-author">
				<label for="author"><?php echo $this->lang->line('default_comment_author'); ?></label> <?php echo $this->lang->line('default_comment_required'); ?>
				<input id="author" name="author" type="text" value="" size="30" />
			</p>
			<p class="comment-form-email">
				<label for="email"><?php echo $this->lang->line('default_comment_email'); ?></label> <?php echo $this->lang->line('default_comment_required'); ?>
				<input id="email" name="email" type="text" value="" size="30" />
			</p>
			<p class="comment-form-url">
				<label for="url"><?php echo $this->lang->line('default_comment_url'); ?></label>
				<input id="url" name="url" type="text" value="" size="30" />
			</p>
			<p class="comment-form-comment">
				<label for="comment"><?php echo $this->lang->line('default_comment_comment'); ?></label> <?php echo $this->lang->line('default_comment_required'); ?>
				<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>
			</p>
			<p class="form-allowed-tags"><?php echo $this->lang->line('default_comment_allowed'); ?>: <code>&lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt; </code>
			</p>						
			<p class="form-submit">
				<input name="submit" type="submit" id="submit" value="<?php echo $this->lang->line('default_comment_submit'); ?>" />
				<input type='hidden' name='comment_post_ID' value='<?php echo $post_result->post_id; ?>' id='comment_post_ID' />
				<input type='hidden' name='comment_post_type' value='<?php echo $post_result->post_type; ?>' id='comment_post_type' />
			</p>
		</form>
		
	</div><!-- #respond -->
	<?php endif; ?>
</div>